<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="spring" uri="/WEB-INF/lib/spring.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib prefix="z" uri="/WEB-INF/lib/zerdoor.tld"%>
<c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><spring:message code='chatMain.message.msg34' /></title>
    <link href="${path}/style/acg/css/style.css" rel="stylesheet" type="text/css" />
    <script src="${path}/js/jquery.min.js" type="text/javascript"></script>
    <%--<script type="text/javascript" src="${path}/style/acg/js/common.js"></script>--%>


    <script type="text/javascript">

        //去支付
        function f_goPay(){


            //支付......


//            var payType = $("input[name='payType']:checked").val();
            var payType = "";
            var url = "";
            if("alipay" == payType){
                url = "${path}/itemStage/addvaluePayByAlipay.html"
            }else if("paypay" == payType){
                url = "${path}/itemStage/addvaluePayByPaypay.html"
            }else{
                url = "${path}/itemStage/addvaluePayByBalance.html"
            }

            if(!confirm("<spring:message code='chatMain.message.msg35' />")){

                return;

            }

            $.post(url,{stageId:"${stageId}"},function(data){


                if(data.static == 0){

                    alert("<spring:message code='chatMain.message.msg36' />");

                    window.opener=null;
                    window.open('', '_self', '');
                    window.close();

                }else if(data.static == 4){
                    alert("<spring:message code='chatMain.message.msg37' />");
                }else{
                    alert("<spring:message code='chatMain.message.msg38' />");
                }

            });


            <%--//支付成功后 test--%>
            <%--if(confirm("test是否支付成功？")){--%>

            <%--$.post("${path}/taskInfo/publishTaskInfo.html",{task_id:"${task_id}"},function(data){--%>

            <%--});--%>
            <%--}--%>


        }


    </script>
</head>

<body>
<div class="header">
    <jsp:include page="../public/header.jsp">
        <jsp:param    name="home"    value="dddd"    />
    </jsp:include>
</div>

<div id="container">
    <div class="wrapper">
    	<div class="referbidbox">

            <div class="referform">
            	<div class="refersuccess">
                	<h1><spring:message code='chatMain.message.msg39' /></h1>
                    <p><spring:message code='chatMain.message.msg40' />${payInfo.fee} &nbsp;&nbsp;
                        <spring:message code='chatMain.message.msg41' />${payInfo.popur} &nbsp;&nbsp;
                        <spring:message code='chatMain.message.msg42' />${payInfo.stage}</p>
                    <p><spring:message code='chatMain.message.msg43' />${payInfo.prestoreSurplus}</p>
                    <p><spring:message code='chatMain.message.msg44' />${payInfo.popur + payInfo.fee + payInfo.stage - payInfo.prestoreSurplus}</p>

                    <p><spring:message code='chatMain.message.msg45' /></p>
                </div>
            </div>
        	<div class="referform nomorder">
                <ul class="referOver">
                    <li class="formli">
                        <dl class="clearfix">
                            <dt><spring:message code='chatMain.message.msg46' /></dt>
                            <dd>
                               ￥${payInfo.popur + payInfo.fee + payInfo.stage - payInfo.prestoreSurplus}
                            </dd>
                        </dl>
                    </li>
                    <li class="formli">
                        <dl class="clearfix">
                            <dt><spring:message code='chatMain.message.msg47' /></dt>
                            <dd class="clearfix" id="payType">
                                <div class="paytype_num selected">
                                	<strong><spring:message code='chatMain.message.msg48' /></strong><br/>
                                    <p><spring:message code='chatMain.message.msg49' />${payInfo.wallet}<spring:message code='chatMain.message.msg50' /></p>
                                </div>
                                <div class="paytype"><img src="${path}/style/acg/images/pay/zfb.jpg" /></div>
                                <div class="paytype"><img src="${path}/style/acg/images/pay/paypal.jpg" /></div>
                            </dd>
                        </dl>
                    </li>
                    <li class="formli">
                        <dl class="clearfix">
                            <dt>&nbsp;</dt>
                            <dd class="clearfix">

                                <input type="submit" id="" name="" value="<spring:message code='chatMain.message.msg51' />" class="fl submitorg" onclick="f_goPay()"/>
                             </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div id="footer">
    <!--content-->
    <jsp:include page="../public/footer.jsp"></jsp:include>
</div>

</body>
</html>
